package com.ruoyi.yuce.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yuce.mapper.FengjiruncodeMapper;
import com.ruoyi.yuce.domain.Fengjiruncode;
import com.ruoyi.yuce.service.IFengjiruncodeService;

/**
 * 风机运行代码Service业务层处理
 * 
 * @author xinhui
 * @date 2023-01-17
 */
@Service
public class FengjiruncodeServiceImpl implements IFengjiruncodeService 
{
    @Autowired
    private FengjiruncodeMapper fengjiruncodeMapper;

    /**
     * 查询风机运行代码
     * 
     * @param id 风机运行代码主键
     * @return 风机运行代码
     */
    @Override
    public Fengjiruncode selectFengjiruncodeById(Integer id)
    {
        return fengjiruncodeMapper.selectFengjiruncodeById(id);
    }

    /**
     * 查询风机运行代码列表
     * 
     * @param fengjiruncode 风机运行代码
     * @return 风机运行代码
     */
    @Override
    public List<Fengjiruncode> selectFengjiruncodeList(Fengjiruncode fengjiruncode)
    {
        return fengjiruncodeMapper.selectFengjiruncodeList(fengjiruncode);
    }

    /**
     * 新增风机运行代码
     * 
     * @param fengjiruncode 风机运行代码
     * @return 结果
     */
    @Override
    public int insertFengjiruncode(Fengjiruncode fengjiruncode)
    {
        return fengjiruncodeMapper.insertFengjiruncode(fengjiruncode);
    }

    /**
     * 修改风机运行代码
     * 
     * @param fengjiruncode 风机运行代码
     * @return 结果
     */
    @Override
    public int updateFengjiruncode(Fengjiruncode fengjiruncode)
    {
        return fengjiruncodeMapper.updateFengjiruncode(fengjiruncode);
    }

    /**
     * 批量删除风机运行代码
     * 
     * @param ids 需要删除的风机运行代码主键
     * @return 结果
     */
    @Override
    public int deleteFengjiruncodeByIds(Integer[] ids)
    {
        return fengjiruncodeMapper.deleteFengjiruncodeByIds(ids);
    }

    /**
     * 删除风机运行代码信息
     * 
     * @param id 风机运行代码主键
     * @return 结果
     */
    @Override
    public int deleteFengjiruncodeById(Integer id)
    {
        return fengjiruncodeMapper.deleteFengjiruncodeById(id);
    }
}
